unit uFrmParametro;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ImgList, StdCtrls, JvExStdCtrls, JvButton, JvCtrls, JvFooter,
  ExtCtrls, JvExExtCtrls, JvExtComponent;

type
  TFrmParametro = class(TForm)
    JvFooter1: TJvFooter;
    btnConfirmar: TJvFooterBtn;
    JvFooterBtn2: TJvFooterBtn;
    gbDados: TGroupBox;
    txtLogin: TEdit;
    txtSenha: TEdit;
    Label1: TLabel;
    Label2: TLabel;
    procedure btnCancelarClick(Sender: TObject);
    procedure btnConfirmarClick(Sender: TObject);
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FrmParametro: TFrmParametro;

implementation

uses
  Var_Global, Rot_Utilidade, uDMGeral;

{$R *.dfm}

procedure TFrmParametro.btnCancelarClick(Sender: TObject);
begin
  ModalResult := mrCancel;
end;

procedure TFrmParametro.btnConfirmarClick(Sender: TObject);
begin
  GS_LOGIN := txtLogin.Text;
  GS_SENHA := txtSenha.Text;

  GravarIni; 

  ModalResult := mrOk;
end;

procedure TFrmParametro.FormShow(Sender: TObject);
begin
  LerIni;

  txtLogin.Text := GS_LOGIN;
  txtSenha.Text := GS_SENHA;
end;

end.
